From 415533b5b57c2737595ec3ad74ef84a607ab4570 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 12:40:45 +0000 Subject: Always store single element for additional closure data --- ...hedlang.compiler.testing.snapshots.Snapshotter)].expected | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index b3fe431b..f248c1db 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -24,8 +24,8 @@ Compilation unit elements: memory-load (local "effectHandler__1") pointer=(local "effectHandlerMethodPointer__0") - layout=(struct (function-ptr data-ptr (struct ()))) - offset=(1) + layout=(struct (function-ptr (struct (data-ptr)) (struct ()))) + offset=(1 0) ) (call _ "shed__runtime__effects_set_handler" ((local "effectHandler__1"))) (local-store (local "tmp__0") (int 0)) @@ -42,11 +42,11 @@ Locals: Instructions: ( - (alloc-heap (local "closurePointer__f__0") (struct (function-ptr data-ptr (struct ())))) + (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr)) (struct ())))) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr data-ptr (struct ()))) + layout=(struct (function-ptr (struct (data-ptr)) (struct ()))) offset=(0) value=(function-ptr "shed__effectHandlerMethod__f__0") ) @@ -54,8 +54,8 @@ Instructions: ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr data-ptr (struct ()))) - offset=(1) + layout=(struct (function-ptr (struct (data-ptr)) (struct ()))) + offset=(1 0) value=(local "effectHandlerCurrent__0") ) (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0")) -- cgit v1.2.3